package com.springcloud.feignclient.client;

import com.springcloud.feignclient.fallback.Client2Fallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "client-2" , fallback = Client2Fallback.class)
public interface Client2 {

    @GetMapping("{method}")
    String getMethod(@PathVariable("method") String method,@RequestParam Map map);
}
